<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/7
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Title</title>
    <script src="js/jquery-3.6.0.min.js"></script>
</head>
<body>
<table border="1" width="700px" cellpadding="10" cellspacing="0" align="center">
    <caption><h2>商品信息列表</h2></caption>
    <tr>
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品描述</th>
        <th>上架时间</th>
        <th>购买商品</th>
    </tr>
    <c:forEach items="${plist}" var="pd">
        <tr>
            <td>${pd.pid}</td>
            <td>${pd.pname}</td>
            <td>${pd.price}</td>
            <td>${pd.pdesc}</td>
            <td>${pd.pdate}</td>
            <td>
                <a href="product?method=findProductByPid&pid=${pd.pid}">加入购物车</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
